package cn.laixueit.listen;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

//@Component
public class ConsumerListen {

    @RabbitListener(queues = "mq.test")
    @RabbitHandler
    public void listen(String msg){
        System.out.println(msg);
    }
}
